package cn.mavor.day0903;

import java.util.Arrays;

public class reverse {
    public static void main(String[] args){
        int[] num = {1,2,3,4,5,6,7};
        int[] reverse = new int[num.length];
        int j = num.length-1;
        for(int i = 0; i < num.length ; i++){
            reverse[i] = num[j];
            j--;
        }
        System.out.println("颠倒后的数组为："+ Arrays.toString(reverse));
    }
}
